setGlobalDuration(10)

def printTime():
    print ti1.getTime()

ti1 = pattern(0.125, printTime, [1,1,2])
ti1.start()
ti1.play()

startCsound()

